import { Sequelize } from 'sequelize';
import sequelize from "../config/db";


export const Department = sequelize.define('Department', {
  id: {
    type: Sequelize.STRING,
    allowNull: false,
    primaryKey: true,
  },
  parent_id: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  code: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  dict_key: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  dict_value: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  sort: {
    type: Sequelize.STRING,
    allowNull: false,
  },
}, {
  tableName: 'blade_dict'
})
